import yaml

'''

'''


def parse_yaml(file, section, key):
    with open(file, 'r', encoding='utf-8') as f:
        data = yaml.load(f, Loader=yaml.FullLoader)
        print(data)
        return data[section][key]


if __name__ == '__main__':
    value = parse_yaml('my_yaml_3.yaml', 'websites', 'URL')
    print(value)
